package com.suixun.entity.mongodb;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class TrackLog {
    private String _id;

    public String get_id() {
        return _id;
    }
    private float lng;
    private float lat;
    private float lngx;
    public float getLngx() {
        return lngx;
    }
    public void setLngx(float lngx) {
        this.lngx = lngx;
    }
    public float getLaty() {
        return laty;
    }
    public void setLaty(float laty) {
        this.laty = laty;
    }
    private float laty;
    private int babyid;
    private Date gpstime;
    public float getLng() {
        return lng;
    }
    public void setLng(float lng) {
        this.lng = lng;
    }
    public float getLat() {
        return lat;
    }
    public void setLat(float lat) {
        this.lat = lat;
    }
    public int getBabyid() {
        return babyid;
    }
    public void setBabyid(int babyid) {
        this.babyid = babyid;
    }
    
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")  
    public Date getGpstime() {
        return gpstime;
    }
    public void setGpstime(Date gpstime) {
        this.gpstime = gpstime;
    }
    
    private Short datasource;
    public Short getDatasource() {
        return datasource;
    }
    public void setDatasource(Short datasource) {
        this.datasource = datasource;
    }
}
